# CurrencyConvert
CurrencyStr = input()
if CurrencyStr[0] in ['￥']:
    usd = eval(CurrencyStr[1::1]) / 6.78
    print("${:.2f}".format(usd))
elif CurrencyStr[0:3:1] in ['RMB']:
    usd = eval(CurrencyStr[3::1]) / 6.78
    print("USD{:.2f}".format(usd))
elif CurrencyStr[0] in ['$']:
    rmb = eval(CurrencyStr[1::1]) * 6.78
    print("￥{:.2f}".format(rmb))
elif CurrencyStr[0:3:1] in ['USD']:
    rmb = eval(CurrencyStr[3::1]) * 6.78
    print("RMB{:.2f}".format(rmb))
